var fs = require('fs');
var zlib = require('zlib');
var readStream = fs.createReadStream('data.txt.gz');
var writeStream = fs.createWriteStream('data.txt');

readStream.pipe(zlib.createGzip()).pipe(writeStream);